#include "proc.h"
#include <string.h>
#define STYLE '='
#define ARR '>'
void  process()
{
  const char * lable = "|/-\\";
  char bar[102];
  memset(bar,0,102);
  int i=0;
  while(i <= 100)
  {
    printf("[%-100s][%d%%][%c]\r",bar,i,lable[i % 4]);
    bar[i++] = STYLE;
    if(i != 100)
    {
      bar[i] = ARR;
    }
    fflush(stdout);
    usleep(50000);
  }
  printf("\n");
}
